﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Model.MetadataTypes;
namespace Model.Entities
{
    /// <summary>
    /// 实体类 无线电监测天线信息表的子表, 此类请勿动，以方便表字段更改时重新生成覆盖
    /// </summary>
    [Serializable]
    [MetadataType(typeof(ANTENNA_CHILDTABLE_Metadata))]
    public partial class ANTENNA_CHILDTABLE
    {
        /// <summary>
        /// 创建<see cref="ANTENNA_CHILDTABLE"/>的实例
        /// </summary>
        public ANTENNA_CHILDTABLE()
        {
        }
        /// <summary>
        /// 监测天线ID【主键，系统GUID】
        /// </summary>
        public virtual string ANTEID { get; set; }

        		
        /// <summary>
        /// 天线因子的文件名称
        /// </summary>
        public virtual string ANTENNAFACTORFILENAME { get; set; }

    		
        /// <summary>
        /// 馈线损耗的文件名称
        /// </summary>
        public virtual string FEEDERLOSSFILENAME { get; set; }

    		
        /// <summary>
        /// 天线因子的文件
        /// </summary>
        public virtual byte[] ANTENNAFACTORFILE { get; set; }

    		
        /// <summary>
        /// 馈线损耗的文件
        /// </summary>
        public virtual byte[] FEEDERLOSSFILE { get; set; }

    		
        public override bool Equals(object obj)
        {
            ANTENNA_CHILDTABLE model = obj as ANTENNA_CHILDTABLE;
            return model != null && (ReferenceEquals(ANTEID,null) ? ReferenceEquals(model.ANTEID, null) : ANTEID.Equals(model.ANTEID));
        }
        public override int GetHashCode()
        {
            int hash = GetType().GetHashCode();
            hash = (hash * 397) ^ (ReferenceEquals(ANTEID, null) ? 0 : ANTEID.GetHashCode());
            return hash;
        }
    }
}
